package com.chan.domain;

import com.chan.common.annotation.Excel;
import com.chan.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 附件对象 cd_program_file
 *
 * @author chan
 * @date 2024-04-30
 */
public class CdProgramFile extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;
    /** 关联Id */
    @Excel(name = "关联序号")
    private Long relateId;

    /** 关联业务类型 */
    @Excel(name = "关联菜单",readConverterExp = "1=项目集,2=技术功能,3=交付清单")
    private Long relateMode;

    /** 名称 */
    @Excel(name = "文件名称")
    private String originalFilename;
    /** 名称 */
    @Excel(name = "上传名称")
    private String fileName;

    /** 地址 */
    @Excel(name = "地址")
    private String filePath;



    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public String getOriginalFilename() {
        return originalFilename;
    }

    public void setOriginalFilename(String originalFilename) {
        this.originalFilename = originalFilename;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public void setRelateId(Long relateId)
    {
        this.relateId = relateId;
    }

    public Long getRelateId()
    {
        return relateId;
    }
    public void setRelateMode(Long relateMode)
    {
        this.relateMode = relateMode;
    }

    public Long getRelateMode()
    {
        return relateMode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("originalFilename", getOriginalFilename())
            .append("fileName", getFileName())
            .append("filePath", getFilePath())
            .append("relateId", getRelateId())
            .append("relateMode", getRelateMode())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
